package com.mvvm.start.common.mvvm.v.customview

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.RelativeLayout
import androidx.databinding.DataBindingUtil
import com.mvvm.start.base.utils.CommonUtils
import com.mvvm.start.common.R
import com.mvvm.start.common.databinding.ToolbarPlusLayoutBinding

/**
 * @功能: 自定义标题栏View
 * @User Lmy
 * @Creat 2021/10/27 3:38 下午
 * @Compony 永远相信美好的事情即将发生
 */
class ToolBarPlus constructor(context: Context?, attrs: AttributeSet? = null) :
    RelativeLayout(context, attrs) {
    var toolBarBinding: ToolbarPlusLayoutBinding = DataBindingUtil.inflate(
        LayoutInflater.from(context),
        R.layout.toolbar_plus_layout,
        this,
        true
    )

    init {
        toolBarBinding.rlAll.setPadding(0, CommonUtils.getStatusBarHight(getContext()), 0, 0)
    }

}